package com.car.controller;

import com.car.service.IToday_dataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class Today_dataController {
    @Autowired
    @Qualifier("today_dataService")
    public IToday_dataService iToday_dataService;

    @RequestMapping("/today_dataService")
    public String today_dataService(Model model){
        //洗车总数
        int xiCheSum = iToday_dataService.xiCheSum();
        model.addAttribute("xiCheSum",xiCheSum);
        return "/bosssystem/today_data.jsp";
    }
    @RequestMapping("/today_turnover")
    public String today_turnover(Model model){
        return "/bosssystem/today_turnover.jsp";
    }
}
